class Product < ActiveRecord::Base
  has_many :deliverables

  def Product.get(product_name)
    Product.find_by_name(product_name)|| Product.new(:name => product_name) 
  end

  def Product.name_starts_with(product_name)
    Product.find(:all, :order => "name asc",
      :conditions => ['name LIKE ?', product_name <<"%"])
  end
end
